import Vue from "vue";
import vuex from "vuex";

//引入模块化的store
import product from "./product";
import cart from "./cart";
// import comment from "@/api/comment";
import comment from "./comment/index";

Vue.use(vuex);

export default new vuex.Store({
  state: {},
  mutations: {},
  actions: {},
  getters: {},
  modules: {
    //模块化拆分
    product,
    cart,
    comment,
  },
  piugins: [],
});
